//
//  FriendsTimelineController.h
//  TwitterFon
//
//  Created by kaz on 10/29/08.
//  Copyright 2008 naan studio. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TimeUtils.h"
#import "FriendsTimelineDataSource.h"

@interface FriendsTimelineController : UITableViewController <UIActionSheetDelegate> {
    Stopwatch*                  stopwatch;
    int                         tweetType;
    int                         unread;
    BOOL                        isLoaded;
    BOOL                        firstTimeToAppear;
    FriendsTimelineDataSource*  timelineDataSource;
    CGPoint                     contentOffset;

    UIView* grayBackgroundView;
    UIImageView* middlePicture;
    
    //用于区分是否式root view controller; root view controller会自动刷新
    BOOL isRoot;
}

@property (nonatomic, assign) int tweetType;
@property (nonatomic, assign) BOOL isLoaded;
@property (nonatomic, assign) BOOL isRoot;
@property (nonatomic, retain) UIView* grayBackgroundView;
@property (nonatomic, retain) UIImageView* middlePicture;
@property (nonatomic, retain) FriendsTimelineDataSource*  timelineDataSource;

- (void)loadTimeline;
- (void)restoreAndLoadTimeline:(BOOL)load;
- (void)postTweetDidSucceed:(Status*)status;

- (IBAction)reload:(id)sender;

- (void) hiddenBackgroundView;

@end
